package zheezes.util;

import java.io.File;
import java.io.FileFilter;

public class ReleaseUtil {
	public static final String getJarClassPath(File lib) {
		StringBuilder sb = new StringBuilder();
		for (File file : lib.listFiles(new JarFilter())) {
			sb.append(lib.getName() + "/" + file.getName() + " ");
		}
		sb.deleteCharAt(sb.length() - 1);
		return sb.toString();
	}

	public static void main(String[] args) {
		System.out.println(getJarClassPath(new File("lib")));
	}
}

class JarFilter implements FileFilter {
	public boolean accept(File file) {
		return file.getName().endsWith(".jar");
	}
}